home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Sample Code / Snippets / Development Tools & Languages / AEGestalt 1.0 / UAEServerCommand.cp < prev    next >
Encoding:
Text File  |  1992-07-15  |  766 b   |  32 lines  |  [TEXT/MPS ]

  1. //     Copyright © 1991-92 Apple Computer, Inc. All rights reserved.
  2. //    UAEServerCommand.cp
  3. //    Kent Sandvik DTS
  4. //    This file contains the TAEServer member functions, for serving
  5. //    incoming Apple events.
  6. //
  7. //    <1>        khs        1.0        First final version
  8.  
  9.  
  10. #ifndef __AESERVERCOMMAND__
  11. #include "UAEServerCommand.h"
  12. #endif
  13.  
  14.  
  15. //    Empty constructor - for avoiding ptabs in global data space
  16. #pragma segment ARes
  17. TAEServerCommand::TAEServerCommand()
  18. {
  19. }
  20.  
  21.  
  22. //    Process the incoming client AppleEvent, and return the needed information,
  23. //    in our case the gConfiguration structure resident in memory.
  24. #pragma segment ADoCommand
  25. pascal void TAEServerCommand::DoIt()
  26. {
  27.     fReply->WriteParameterPtr(kAEConfig, typeConfig, (Ptr) & gConfiguration, sizeof(gConfiguration));
  28.     fReply->Send();
  29. }
  30.  
  31.  
  32.